﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LibrarySync2.Common.Enum;

namespace LibrarySync2.Common.Event
{
    public class CopyEventArgs : EventArgs
    {
        public CopyStatusType Status { get; private set; }
        public string Message { get; private set; }

        public CopyEventArgs(CopyStatusType status)
            : this(status, string.Empty)
        {
            //Do nothing more.
        }

        public CopyEventArgs(CopyStatusType status, string message)
        {
            Status = status;
            Message = message;
        }

        public override string ToString()
        {
            switch (Status)
            {
                case CopyStatusType.Starting:
                case CopyStatusType.CopyFileProgress:
                    return string.Format("{0}", Message);
                case CopyStatusType.Complete:
                    return "Copy complete.";
                case CopyStatusType.Cancelled:
                    return "Copy cancelled.";
                default:
                    return base.ToString();
            }
        }
    }
}
